﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLL;

namespace BLL
{
    public class ProducerService
    {
        private ProducerRepo m_Repo;

        public ProducerService()
        {
            m_Repo = new ProducerRepo();
        }

        public void AddProducer(Producer producer)
        {
            m_Repo.AddProducer(producer);
        }

        public void UpdateProducer(Producer producer)
        {
            m_Repo.UpdateProducer(producer);
        }

        public IList<Producer> GetProducers()
        {
            return m_Repo.GetProducers();
        }

        public bool DeleteProducer(int producerId)
        {
            return m_Repo.DeleteProducer(producerId);
        }

    }
}
